﻿namespace Webinator.Impls
{
    using Enums;

    /// <summary>
    /// Defines how to identify an element in a collection.
    /// </summary>
    public class Selector
    {
        /// <summary>
        /// Gets or sets the selector is.
        /// </summary>
        public SelectorIs SelectorIs { get; set; }

        /// <summary>
        /// Gets or sets the argument.
        /// </summary>
        public string Argument { get; set; }

        /// <summary>
        /// Creates a string representation of this object.
        /// </summary>
        /// <returns>
        /// A string representation of this object.
        /// </returns>
        public override string ToString()
        {
            return string.Format("{0}:{1}", SelectorIs, Argument);
        }
    }
}
